libxl: Replace open-coded __attribute__ with NN() macro
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 20 Oct 2017 10:42:42 +0000 (11:42 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 23 Oct 2017 14:23:32 +0000 (15:23 +0100)
commit1f2c7894dfe3d52f33655de202bd474999a1637b
tree07331e324d69ffab0888c785d5b869b9c3e50a2a
parente1bc61af7621ee07f7ba03afcfa4b6fa54fbfb2a
libxl: Replace open-coded __attribute__ with NN() macro

Inspired by
  #define __nonnull(...) __attribute__((__nonnull__(__VA_ARGS__)))
which is used in the hypervisor.

These annotations may well become very common in libxl, so we choose a
short name.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Release-acked-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Wei Liu <wei.liu2@citrix.com>
CC: Andrew Cooper <andrew.cooper3@citrix.com>
tools/libxl/libxl_internal.h